{
"metadata": {
"language": "Julia",
"name": "",
"signature": "sha256:f611914185778ee4e0cad8268365551eea3f31a446c5fd9aa8e6941aedecae66"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Welcome to IJulia notebooks for 18.06"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"A Few Links:
\n",
" Learning Resources
\n",
"Perhaps use \"File-->Make a Copy\" to copy this notebook, though the original can always be obtained on the 18.06 website. You\n",
"can edit the title directly by clicking. (Note: The File button is below the IJ symbol)
\n",
"If you lose connectivity (e.g. the * appears for too long), check if you are still logged in to your google account, or try
\n",
"Kernel-->Restart and re-execute your lines.
\n",
"To print use IJulia's Print Preview and the browser's Print. If you only get part of your notebook, possibly try another browser."
]
},
{
"cell_type": "heading",
"level": 4,
"metadata": {},
"source": [
"INSTRUCTIONS: See if everything just works. Nothing to hand in. If all is well, take the time to play a bit. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" If not, drop us a note at 1806-julia-help@googlegroups.com . "
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# Hit Shift Enter once in each box to execute Julia\n",
"1+1"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# Primes less than 20\n",
"x = primes(20)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 2
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# Draw a stock market like plot\n",
"using PyPlot; # (may take a little time but only needed once to load the plotting package from Python)\n",
"plot(cumsum(randn(200)))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stderr",
"text": [
"INFO: Loading help data...\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# Random 4x4 matrix with entries from 1:10 (Shift-enter a few times)\n",
"A=rand(1:10,4,4)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# Is this Right?\n",
"A*primes(7)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 5
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"# Get Greek letters and other TeX symbols e.g. \\pi\n",
"\u03c0"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 6
}
],
"metadata": {}
}
]
}